<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport"
	      content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Title</title>
	<script src="index.js"></script>
</head>
<body>

</body>
</html>
<script>
	let arr=[1,2,3,4,5,6];
	console.log(map(arr,(item)=>{
		return item*10
	}))
	console.log(reduce(arr,(res,value)=>{
		return res+value;
	},0))
	console.log(filter(arr,(item)=>{
		return item>3
	}))
	console.log(find(arr,(item)=>{
		return item>4
	}))
	console.log(findIndex(arr,(item)=>{
		return item>4;
	}))
	console.log(every(arr,(item)=>{
		return item>5;
	}))
	console.log(some(arr,(item)=>{
		return item>5;
	}))
	let arr2=[1,2,3,4,5,6,2,3,1,3];
	console.log(unique1(arr2))
	console.log(unique2(arr2))
	console.log(unique(arr2))
	
	console.log(concat(arr2,1,2,3,4,[1,2,3],4))
	console.log(slice(arr2,2,4))
	console.log(chunk(arr2,3))
</script>
